Having duplicated font names doesn’t help to read the font declaration and may be an indicator the author of the line was not sure how to configure
it. This rule raises an issue when font
or font-family
properties contain a duplicated font name. This rule ignores
$sass
, @less
, and var(--custom-property)
variable syntaxes.
Noncompliant code example
a {
font-family: 'Georgia', Georgia, serif; /* Noncompliant; 'Georgia' is duplicated */
}
Compliant solution
a {
font-family: Georgia, serif;
}